import { Boolean, CreateDate, Jsonb, Money, PrimaryUuid, Title, UpdateDate } from "../utils";
import { Entity } from "typeorm";

@Entity({
    name: 'fuli_postage'
})
export class FuliPostage {
    @PrimaryUuid()
    id: string;

    @Title()
    title: string;

    @Money({ default: 0 })
    money: number;

    @Jsonb()
    setting: any;

    @Boolean({ default: true })
    status: boolean;

    @Boolean({ default: false })
    is_default: boolean;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}